<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--报关行/货代</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="<%=request.getContextPath()%>/css/cssCn.css"
			type="text/css" rel="stylesheet">
		<%@ include file="/comm.jsp"%>
		<script language="JavaScript">
	function pidChange(pidVal){
		var cid=$d("cid");
		cid.options.length = 0;
		if(pidVal=="-1")
			return;
		
		var params = {
					pid:pidVal
					};
		
		$.ajax({type: "POST",
		       url: "ajax_loadCityByPid.do",
		       data: params,
		       async: true,
		       success: function(result){
				 if(result.retcode=='0000'){
				    var cityList = result.cityList;
				    cid.options[0] = new Option('请选择','-1');
					for(var i=0;i<cityList.length;i++){
						var city=cityList[i];
						cid.options[i+1] = new Option(city.name,city.pid);
					}	
				 }
			  }
			},"json");
	}
</script>
	<body leftmargin="0" topmargin="0" marginheight="0">
		<!--按市选择-->

		<div id="job_search">
			<table width="700" border="1">
				<tr>
					<td width="120">
						按服务类型：
					</td>
					<td>
						全部 &nbsp;&nbsp; 货代 &nbsp;&nbsp; 报关行
					</td>
				</tr>
				<tr>
					<td>
						按地区分类：
					</td>
					<td>
						<div class="con">
							<ul>
								<s:iterator value="#request.cityList" id="ca">
									<li>
										&nbsp;
										<a
											href="<s:url action="agentInfo_list">
						<s:param name="pid"><s:property value="#ca.pid"/></s:param>
					<s:if test="#sa.id != null">
						<s:param name="cid"><s:property value="#ca.id"/></s:param>
					</s:if>
					</s:url>">
											<s:property value="#ca.name" /> </a>
										<sup>
											<s:property value="#ca.count" />
										</sup>
										<br>
									</li>
								</s:iterator>

							</ul>
						</div>
					</td>
				</tr>
			</table>
		</div>


		<!--缩小搜索范围-->
		<s:form name="formpage" action="agentInfo_save" namespace="/">
			<s:token>
			</s:token>
			<div id="leach_search">
				<b style="color: #333">缩小搜索范围：</b>
				<s:select list="#request.pidList" headerKey="-1" headerValue="请选择"
					name="agentInfoDto.pid" value="#request.agentInfoDto.pid"
					onchange="pidChange(this.value);" id="pid" cssStyle="width:120px">
				</s:select>

				<s:select list="#{'':''}" name="agentInfoDto.cid"
					value="#request.agentInfoDto.cid" id="cid" cssStyle="width:150px">
				</s:select>

				<input name="searchControl_Word" type="text" class="search_input"
					id="searchControl_Word" value="请输入关键字" />

				<input type="submit" class="search_submit"
					name="searchControl_Button" id="searchControl_Button" value="提交" />
			</div>
		</s:form>
		<!--展会标题栏-->
		<div class="com_titlenav">
			<span class="com_title">b公司信息</span>想排名靠前？立即
			<a href="http://www.yiean.com" target="_blank">免费申请易安认证</a>。咨询客服QQ
			<a href="tencent://message/?uin=1570181278&Site=在线客服&Menu=yes"> </a>
		</div>

		<!--列表内容-->
		<div class="com_content">
			<table border="1" width="700">
				<s:iterator value="#request.agentList" id="ca">
				<tr>
					<td>
						<a
							href="<s:property value="#ca.webSite"/>">
						<strong><s:property value="#ca.companyName" /></strong> 
						</a>
						<s:property value="#ca.pid" />
						<s:property value="#ca.cid" />
					</td>
				</tr>
				<tr>
					<td>
					&nbsp;<s:property value="#ca.introduction" />
					</td>
				</tr>
				<tr>
					<td>
					联系方式：
					</td>
				</tr>
				</s:iterator>
			</table>
		</div>
		</body>
</html>
